package innerclass.匿名内部类;

/**
 * Created by chengxiaoqi1 on 2018/8/26.
 */
interface Person3 {

    void eat();

}

public class Demo3 {


    public static void main(String[] args) {
        Person3 person3 = new Person3() {
            @Override
            public void eat() {
                System.out.println("eat sth");
            }
        };

        person3.eat();
    }




}
